package com.lihepeng.leecode.design_patten.decorator;

public class Client {
    public static void main(String[] args) {
        Person person = new Person();
        person.setName("张三");
        Finery tie = new Tie();
        Finery tShirt = new TShirt();
        Finery bigTrousers = new BigTrousers();
        tie.decorate(person);
        tShirt.decorate(tie);
        bigTrousers.decorate(tShirt);
        bigTrousers.show();
    }

}
